<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1" name="viewport"/>
	<meta content="" name="description"/>
	<meta content="" name="author"/>
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
	<link href="./Public/Admin/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="./Public/Admin/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
	<link href="./Public/Admin/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	
	<!-- BEGIN THEME STYLES -->
	<link href="./Public/Admin/assets/global/css/components.css" id="style_components" rel="stylesheet" type="text/css"/>
	
	<link href="./Public/Admin/assets/admin/layout/css/layout.css" rel="stylesheet" type="text/css"/>
	<!--<link href="./Public/Admin/assets/admin/layout/css/themes/darkblue.css" rel="stylesheet" type="text/css" id="style_color"/>-->
	
	<!-- END THEME STYLES -->
	<link rel="shortcut icon" href="favicon.ico"/>
	 <base target="iframe"/>
</head>
<body>
	<table class="table table-bordered table-hover">
		<tbody>
		<tr>
			<th>ID</th>
			<th>商品名称</th>
			<th>价格</th>
			<th>点击次数</th>
			<th>库存</th>
			<th>添加时间</th>
			<th>操作</th>
		</tr>
		{{foreach from="$goods" value="$v"}}
		<tr class="info">
				<td>{{$v['gid']}}</td>
				<td>
					<a href="" target="_blank">{{$v['gname']}}</a>
				</td>
				<td>
					<ul>
						<li>市场价：<del>¥{{$v['gmprice']}}</del></li>
						<li>商城价：<span>¥{{$v['gprice']}}</span></li>
					</ul>
				</td>
				<td>{{$v['gclick']}}</td>
				<td>{{$v['gtotal']}}</td>
				<td>{{date('Y-m-d',$v['gtime'])}}</td>
				<td>
					<a href="{{U('Goodslist/index',array('gid'=>$v['gid'],'type_tid'=>$v['type_tid']))}}" class="btn btn-success"><i class="icon-th icon-white"></i>货品列表</a>
					<a href="{{U('Goods/edit',array('gid'=>$v['gid']))}}" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
					<a href="javascript:if(confirm('确认删除吗？')) location.href='{{U('del',array('gid'=>$v['gid']))}}';" class="btn btn-danger"><i class="icon-trash icon-white"></i>删除</a>
				</td>
		</tr>
		{{endforeach}}
		</tbody>
	</table>
</body>
</html>